win10+cuda10.0+py3.68,keras版本的ocr 访问 http://127.0.0.1:8088/ocr报错 · Issue #227 · chineseocr/chineseocr · GitHub 您所在的位置:网站首页 版本 win10+cuda10.0+py3.68,keras版本的ocr 访问 http://127.0.0.1:8088/ocr报错 · Issue #227 · chineseocr/chineseocr · GitHub

win10+cuda10.0+py3.68,keras版本的ocr 访问 http://127.0.0.1:8088/ocr报错 · Issue #227 · chineseocr/chineseocr · GitHub

2022-12-09 08:29| 来源: 网络整理| 查看: 265

博主您好,很激动看到您又更新了项目,我用了keras版本的ocr测试,报如下这个错误,请问这是什么原因呢: at /ocr 'gbk' codec can't decode byte 0xab in position 428: illegal multibyte sequence Python d:\program files\python368\lib\site-packages\web\debugerror.py in _get_lines_from_file, line 245 Web GET http://127.0.0.1:8088/ocr 这个貌似是编码的问题?

=================

Text detect engine:keras http://0.0.0.0:8088/ Traceback (most recent call last): File "d:\program files\python368\lib\site-packages\web\application.py", line 257, in process return self.handle() File "d:\program files\python368\lib\site-packages\web\application.py", line 248, in handle return self._delegate(fn, self.fvars, args) File "d:\program files\python368\lib\site-packages\web\application.py", line 488, in _delegate return handle_class(cls) File "d:\program files\python368\lib\site-packages\web\application.py", line 466, in handle_class return tocall(*args) File "D:\Tensorflow\pytorch\chineseocr\app.py", line 35, in GET return render.ocr(post) File "d:\program files\python368\lib\site-packages\web\template.py", line 1034, in getattr t = self._template(name) File "d:\program files\python368\lib\site-packages\web\template.py", line 1031, in _template return self._load_template(name) File "d:\program files\python368\lib\site-packages\web\template.py", line 1016, in _load_template return Template(open(path).read(), filename=path, **self._keywords) UnicodeDecodeError: 'gbk' codec can't decode byte 0xa7 in position 1018: illegal multibyte sequence

Traceback (most recent call last): File "d:\program files\python368\lib\site-packages\web\application.py", line 257, in process return self.handle() File "d:\program files\python368\lib\site-packages\web\application.py", line 248, in handle return self._delegate(fn, self.fvars, args) File "d:\program files\python368\lib\site-packages\web\application.py", line 488, in _delegate return handle_class(cls) File "d:\program files\python368\lib\site-packages\web\application.py", line 466, in handle_class return tocall(*args) File "D:\Tensorflow\pytorch\chineseocr\app.py", line 35, in GET return render.ocr(post) File "d:\program files\python368\lib\site-packages\web\template.py", line 1034, in getattr t = self._template(name) File "d:\program files\python368\lib\site-packages\web\template.py", line 1031, in _template return self._load_template(name) File "d:\program files\python368\lib\site-packages\web\template.py", line 1016, in _load_template return Template(open(path).read(), filename=path, **self._keywords) UnicodeDecodeError: 'gbk' codec can't decode byte 0xa7 in position 1018: illegal multibyte sequence

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "d:\program files\python368\lib\site-packages\web\application.py", line 255, in process return p(lambda: process(processors)) File "d:\program files\python368\lib\site-packages\web\application.py", line 643, in processor return handler() File "d:\program files\python368\lib\site-packages\web\application.py", line 255, in return p(lambda: process(processors)) File "d:\program files\python368\lib\site-packages\web\application.py", line 264, in process raise self.internalerror() File "d:\program files\python368\lib\site-packages\web\application.py", line 545, in internalerror return debugerror() File "d:\program files\python368\lib\site-packages\web\debugerror.py", line 313, in debugerror return web._InternalError(djangoerror()) File "d:\program files\python368\lib\site-packages\web\debugerror.py", line 271, in djangoerror _get_lines_from_file(filename, lineno, 7) File "d:\program files\python368\lib\site-packages\web\debugerror.py", line 246, in _get_lines_from_file source = open(filename).readlines() UnicodeDecodeError: 'gbk' codec can't decode byte 0xab in position 428: illegal multibyte sequence

127.0.0.1:5123 - - [24/Apr/2019 09:45:49] "HTTP/1.1 GET /ocr" - 500 Internal Server Error 127.0.0.1:5123 - - [24/Apr/2019 09:45:49] "HTTP/1.1 GET /favicon.ico" - 404 Not Found



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有